package com.easondongh.blog.config;

import com.easondongh.blog.utils.IdWorker;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 *  配置类实体放入Spring容器
 * @author EasonDongH
 * @date 2020/3/19 13:47
 */
@Configuration
public class BeanConfig {

    @Bean
    public IdWorker idWorker(){
        return new IdWorker();
    }
}
